<?php 
namespace app\api\validate;

use think\Validate;

class UserLoginValidate extends Validate
{
    protected $rule = [
        'mobile'  =>  'require|mobile',
        'password' =>  'require',
    ];   

    protected $message  =   [
        'mobile.require' => '手机号必须|1',
        'mobile.mobile'   => '手机号格式不正确|3',
        'password.require'   => '密码必须传递|6'   
    ];

   
}


?>